<?php


namespace app\activity\validate;


use think\Validate;

class ActivityItemValidate extends Validate
{
    protected $rule = [
        'id'  => ['require','number', '>=' => 1],
        'status'  => ['require','number', 'in' => [-1, 0, 1]],
        'title|标题' => ['require']
    ];

    protected $scene = [
        'get'  =>  ['id'],
        'update' => ['id'],
        'updateStatus' => ['id', 'status'],
        'create' => ['title']
    ];
}